import { RoutesAlias } from '@/router/routesAlias'
import { AppRouteRecord } from '@/types/router'

const meta = {}

const pre = 'setting-'

export default {
  path: '/setting',
  name: 'setting',
  redirect: {
    name: `${pre}user`
  },
  meta: { ...meta, title: '企管消耗' },
  component: RoutesAlias.Home,
  children: [
    {
      path: 'user',
      name: `${pre}user`,
      meta: {
        ...meta,
        title: '个人中心'
      }
      // component: () => import('@/pages/setting/user')
    },
    {
      path: 'account',
      name: `${pre}account`,
      meta: {
        ...meta,
        title: '个人设置'
      }
      // component: () => import('@/pages/setting/account')
    },
    {
      path: 'sheJiZhong',
      name: `${pre}sheJiZhong`,
      meta: {
        ...meta,
        title: '开发中'
      }
      // component: () => import('@/pages/setting/sheJiZhong')
    }
  ]
} as AppRouteRecord
